﻿<%@ Page Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="UsingExistingGrid.aspx.cs" Inherits="YUIAspNetDemo.DataTable.UsingExistingGrid" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : DataTable : Existing GridView</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>DataTable using existing GridView</h1>
    
    <p>In this example, the YUIAsp.Net DataTable control is using an existing grid on the page.</p>
        
    <p>
        <yui:DataTable ID="dt" runat="server" HidePaginator="true" ResultsPerPage="7" AttachedGridID="grid" DefaultSortColumnKey="col_1" DefaultSortOrder="Ascending">
           <%-- <Columns>
                <yui:DataTableColumn Key="id" Text="ID Customer" />
                <yui:DataTableColumn Key="name" Text="Customer Name" />
            </Columns>--%>
        </yui:DataTable>
        
        <asp:GridView ID="grid" runat="server"></asp:GridView>
    </p>
</asp:Content>